package com.qqtech.qquan.order.enums;
/**
 * 1-买家手动签收;2-逾期自动签收;3-配送人签收;4-买家自提自动签收
 *
 */
public enum OrderBaseDeliveryStatusSignTypeDictEnum {
	BUYERSIGNED(1), AUTOSIGNED(2), SENDDELIVERYSIGNED(3),BUYERPICKUP(4);
	int code;

	OrderBaseDeliveryStatusSignTypeDictEnum(int code) {
		this.code = code;
	}

	public int getCode() {
		return code;
	}

	public static boolean isInScope(Integer code) {
		if (code == null) {
			return false;
		}
		OrderBasePayTypeDictEnum[] arrEnum = OrderBasePayTypeDictEnum.values();
		for (OrderBasePayTypeDictEnum e : arrEnum) {
			if (e.code == code.intValue()) {
				return true;
			}
		}
		return false;
	}
}
